package com.martin.dsc.mybatis2.service.impl;

import com.martin.dsc.mybatis2.mapper.UserMapper;
import com.martin.dsc.mybatis2.poji.User;
import com.martin.dsc.mybatis2.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User FindById(Integer id) {
        return userMapper.FindById(id);
    }
}
